package com.one.group.config;

import com.one.group.service.AdvertMcpService;
import com.one.group.service.HouseMcpService;
import com.one.group.service.NoticeMcpService;
import com.one.group.service.VehicleMcpService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MCPServerConfig {
    @Bean
    public ToolCallbackProvider toolCallbackProvider(HouseMcpService houseMcpService, AdvertMcpService advertMcpService, VehicleMcpService vehicleMcpService, NoticeMcpService noticeMcpService) {
        return MethodToolCallbackProvider
                .builder()
                .toolObjects(houseMcpService,advertMcpService,vehicleMcpService,noticeMcpService)
                .build();
    }
}
